package com.lb.jwitter;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.ForeignKey;

@Entity
@Table (name="tbl_QLDTTXA_HoSoXetTuyen")
public class Tbl_QLDTTXA_HoSoXetTuyen implements Serializable {
   private static final long serialVersionUID = -1989579066723007050L;

   private Long id;
   private String email;
   private String diaChi;
   private String diaChiLienLac;
   private String dienThoai;
   private String diDong;
   private String hoTen;
   private String ten;
   private String hinhAnh;
   private String maHoSo;
   private Date ngaySinh;
   private String noiSinh;
   private Boolean gioiTinh;
   private Tbl_QLDTTXA_ThongBaoTuyenSinh thongBaoId = null;
   private Tbl_QLDTTXA_DM_ChiNhanh chiNhanhId = null;
   private Integer trangThaiId;
   private Tbl_QLDTTXA_DM_Khoa khoaId = null;
   private Tbl_QLDTTXA_DM_Nganh nganhId = null;

   @Id
   @GeneratedValue
   public Long getId() {
	    return id;
   }
   public void setId(Long id) {
	    this.id= id;
   }

   public String getEmail() {
   	return email;
   }
   public void setEmail(String email) {
   	this.email= email;
   }

   public String getDiaChi() {
   	return diaChi;
   }
   public void setDiaChi(String diaChi) {
   	this.diaChi= diaChi;
   }

   public String getDienThoai() {
   	return dienThoai;
   }
   public void setDienThoai(String dienThoai) {
   	this.dienThoai= dienThoai;
   }

   public String getHoTen() {
   	return hoTen;
   }
   public void setHoTen(String hoTen) {
   	this.hoTen= hoTen;
   }

   public String getHinhAnh() {
   	return hinhAnh;
   }
   public void setHinhAnh(String hinhAnh) {
   	this.hinhAnh= hinhAnh;
   }

   public String getMaHoSo() {
   	return maHoSo;
   }
   public void setMaHoSo(String maHoSo) {
   	this.maHoSo= maHoSo;
   }

   public Date getNgaySinh() {
   	return ngaySinh;
   }
   public void setNgaySinh(Date ngaySinh) {
   	this.ngaySinh= ngaySinh;
   }

   public String getNoiSinh() {
   	return noiSinh;
   }
   public void setNoiSinh(String noiSinh) {
   	this.noiSinh= noiSinh;
   }

   public Boolean getGioiTinh() {
   	return gioiTinh;
   }
   public void setGioiTinh(Boolean gioiTinh) {
   	this.gioiTinh= gioiTinh;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="ThongBaoId")
   @ForeignKey(name="FK_tbl_QLDTTXA_ThongBaoTuyenSinh_tbl_QLDTTXA_HoSoXetTuyen")
   public Tbl_QLDTTXA_ThongBaoTuyenSinh getThongBaoId() {
	    return thongBaoId;
   }
   public void setThongBaoId(Tbl_QLDTTXA_ThongBaoTuyenSinh thongBaoId) {
	    this.thongBaoId=thongBaoId;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="ChiNhanhId")
   @ForeignKey(name="FK_tbl_QLDTTXA_DM_ChiNhanh_tbl_QLDTTXA_HoSoXetTuyen")
   public Tbl_QLDTTXA_DM_ChiNhanh getChiNhanhId() {
	    return chiNhanhId;
   }
   public void setChiNhanhId(Tbl_QLDTTXA_DM_ChiNhanh chiNhanhId) {
	    this.chiNhanhId=chiNhanhId;
   }

   public Integer getTrangThaiId() {
   	return trangThaiId;
   }
   public void setTrangThaiId(Integer trangThaiId) {
   	this.trangThaiId= trangThaiId;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="khoaId")
   @ForeignKey(name="FK_tbl_QLDTTXA_DM_Khoa_tbl_QLDTTXA_HoSoXetTuyen")
   public Tbl_QLDTTXA_DM_Khoa getKhoaId() {
	    return khoaId;
   }
   public void setKhoaId(Tbl_QLDTTXA_DM_Khoa khoaId) {
	    this.khoaId=khoaId;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="nganhId")
   @ForeignKey(name="FK_tbl_QLDTTXA_DM_Nganh_tbl_QLDTTXA_HoSoXetTuyen")
   public Tbl_QLDTTXA_DM_Nganh getNganhId() {
	    return nganhId;
   }
   public void setNganhId(Tbl_QLDTTXA_DM_Nganh nganhId) {
	    this.nganhId=nganhId;
   }
public String getDiaChiLienLac() {
	return diaChiLienLac;
}
public void setDiaChiLienLac(String diaChiLienLac) {
	this.diaChiLienLac = diaChiLienLac;
}
public String getTen() {
	return ten;
}
public void setTen(String ten) {
	this.ten = ten;
}
public String getDiDong() {
	return diDong;
}
public void setDiDong(String diDong) {
	this.diDong = diDong;
}
}//endClass 

